package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/courseSelection/controller"
	"gowork/courseSelection/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	csc := new(controller.CourseSelectionController)
	app.Post("/selectClass", csc.SelectClass)
	app.Post("/createCourse", csc.CreateCourse)
	app.Post("/queryClassCard", csc.QueryClassCard)

	app.Listen(6994)
}
